package demo1;

import java.io.File;
import java.util.Arrays;

public class Demo_05 {
    public static void main(String[] args) {
        File file=new File("d:/temp");
        String[] list = file.list();
        System.out.println(Arrays.toString(list));
        System.out.println(Arrays.toString(file.listFiles()));


    }
}
